 
function Validate(){
	var e = document.getElementById('name');
	var p = document.getElementById('surname');
	var p1 = document.getElementById('group');
	var f = document.getElementById('login');
	var c = document.getElementById('password');
        var c2 = document.getElementById('password2');
	if (e.value.length<1 || p.value.length<1 || p1.value.length<1 || f.value.length<1 || c.value.length<1 || c.value.length<1){
	 	alert("no user");
	 		return false;
	}
	else if (c.value != c2.value){
	 	alert("no password");
	 		return false;
	 	}
	else return true;
}
